package Controls;

import java.util.List;

import android.app.Activity;
import android.content.Context;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;

public class Parking_Adapter extends BaseAdapter {
	private Context context;	
	private Activity m_activity;
	private List<Parking_VO> listTurn;

	public Parking_Adapter (Context context, List<Parking_VO> listTurn){// Activity activity, boolean isTuyenBus) {
		this.context = context;
		this.listTurn = listTurn;		
//		m_activity = activity;
//		m_isTuyenBus = isTuyenBus;/
	}

	public int getCount() {
		return listTurn.size();
	}

	public Object getItem(int position) {
		return listTurn.get(position);
	}

	public long getItemId(int position) {
		return position;
	}

	public View getView(int position, View view, ViewGroup viewGroup) {
		Parking_VO entry = listTurn.get(position);
		return new Parking_Adapter_View(context, entry);
	}



}
